package Department;

import Employee.FulltimeEmployee;
import Employee.ParttimeEmployee;

public class HRDepartment extends Department {
    @Override
    public void visit(FulltimeEmployee fulltimeEmployee) {
        System.out.println("正式员工："+fulltimeEmployee.getName()+"的周工作时间为："+fulltimeEmployee.getWorkTime());
    }

    @Override
    public void visit(ParttimeEmployee parttimeEmployee) {
        System.out.println("临时员工："+parttimeEmployee.getName()+"的周工作时间为"+parttimeEmployee.getWorkTime());
    }
}
